package com.topisv.tms.entity.task;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.topisv.tms.entity.IdEntity;

/**
 * 任务锁定类
 * 多节点环境,只需单个节点执行的场景,根据此类来判断哪个节点执行
 *  Date          Author       Version       Description
 * ----------------------------------------------------------
 *  2015-7-8      CC            1.0           Create
 */
@Entity
@Table(name = "tt_task_lock")
public class TaskLocker extends IdEntity {

	private static final long serialVersionUID = 1L;
	private String dealIp;//处理IP
	private Date lockTime;//锁定时间

	public String getDealIp() {
		return dealIp;
	}

	public void setDealIp(String dealIp) {
		this.dealIp = dealIp;
	}

	public Date getLockTime() {
		return lockTime;
	}

	public void setLockTime(Date lockTime) {
		this.lockTime = lockTime;
	}

}
